import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Start {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("--start--");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                "spring-context.xml");
        context.start();
        System.out.println("dubbo-rest服务启动成功!");
        // 禁止服务停止,线程睡眠可以降低CPU资源消耗1/4
        for(;;){try {
			Thread.sleep(Long.MAX_VALUE);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}}

	}

}
